package com.ibeeking.found.cop.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName CopSourceParam
 * @Description
 * @Author ibeeking
 * @Date 2021-02-05 16:17
 **/
@Data
public class CopSourceParam implements Serializable {
private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
    @NotNull(message = "id不能为空",groups = BaseValidationGroup.Update.class)
    private Long id;

	/**
	 * 所属素材组id
	 */
    @NotNull(message = "所属素材组id不能为空",groups = BaseValidationGroup.Insert.class)
    private Long parentId;

	/**
	 * 素材分组类型，1-图片，2-视频,3=音频，4=文档，5=图文
	 */
    @NotNull(message = "素材类型不能为空",groups = BaseValidationGroup.Insert.class)
    private Boolean type;

	/**
	 * 素材名称
	 */
    @NotNull(message = "素材名称不能为空",groups = BaseValidationGroup.Insert.class)
    private String name;

	/**
	 * 素材路径
	 */
    @NotNull(message = "素材路径不能为空",groups = BaseValidationGroup.Insert.class)
    private String path;

    /**
     * 描述
     */
    private String remark;

	/**
	 * 创建人
	 */
	private Long createBy;

	/**
	 * 更新人
	 */
    private Long modifyBy;


}
